package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/**
 * @author SongJun
 * @since 2010-3-7
 * @description 供货方信息表
 */
@Entity(name = "t_devicesupply")
@Comment(common = "供货方信息表")
public class DeviceSupply extends BaseVo {
	@Id
	@Column(name = "s_id")
	@Comment(common = "供货方id")
	private Long id;
	
	@Column(name = "s_unitname")
	@Comment(common = "单位名称")
	private String unitName;
	
	@Column(name = "s_linkname")
	@Comment(common = "联系人")
	private String linkName;
	
	@Column(name = "s_linkphone")
	@Comment(common = "联系电话")
	private String linkPhone;
	
	@Column(name = "s_linkaddr")
	@Comment(common = "联系地址")
	private String linkAddr;
	
	@Column(name = "s_supplydesc")
	@Comment(common = "供应方描述")
	private String supplyDesc;
	
	@ManyToOne
	@JoinColumn(name = "s_user")
	@Comment(common = "创建者")
	private User user;
	
	@Column(name = "s_enable")
	@Comment(common = "是否有效")
	private boolean enable = true;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getLinkName() {
		return linkName;
	}

	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}

	public String getLinkPhone() {
		return linkPhone;
	}

	public void setLinkPhone(String linkPhone) {
		this.linkPhone = linkPhone;
	}

	public String getLinkAddr() {
		return linkAddr;
	}

	public void setLinkAddr(String linkAddr) {
		this.linkAddr = linkAddr;
	}

	public String getSupplyDesc() {
		return supplyDesc;
	}

	public void setSupplyDesc(String supplyDesc) {
		this.supplyDesc = supplyDesc;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	
	
}
